package com.taotao.druid.visitor;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * <p>
 *   索引信息
 * </p>
 *
 * @author fanbeibei
 * @version 1.0.0
 * @date 2022/8/24 12:48
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class IndexInfo {

    protected String idxName;

    protected List<String> columns;

    protected boolean unqiue;


    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
